package com.cloudpivot.receivales.crm.entity.contract;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 合同 数据库 对象
 * //select subt.new_sub_contractid from db.crm_new_main_contracts maint inner join db.crm_new_sub_contracts subt on subt._new_contract_value=maint.new_main_contractid
 */
@Entity
@Data
public class ContractEntity {

    @Column(name="new_ccusname")
    private String new_ccusname;
    // 类型
    @Column(name="new_cdefine12")
    private String new_cdefine12;
    @Column(name="new_cdefine13")
    private String new_cdefine13;
    @Column(name="new_contract_name")
    private String new_contract_name;
    @Column(name="new_main_contractid")
    private String new_main_contractid;
    @Id
    @Column(name="new_sub_contractid")
    private String new_sub_contractid;
    @Column(name="new_cinvcode")
    private String new_cinvcode;
    @Column(name="new_cinvname")
    private String new_cinvname;
    @Column(name="new_iquantity")
    private Double new_iquantity;
    // 单价
    @Column(name="new_inatsum")
    private Double new_inatsum;
    @Column(name="sub_statecode")
    private String sub_statecode;
    @Column(name="main_statecode")
    private String main_statecode;
    @Column(name="new_name")
    private String new_name;

}
